package com.wang.friend.domain.exam.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

@Setter
@Getter
public class ExamVO {

    @JsonSerialize(using = ToStringSerializer.class)

    @Schema(description = "竞赛id", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long examId;

    @Schema(description = "竞赛标题")
    private String title;

    @Schema(description = "开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    @Schema(description = "结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;

    @Schema(description = "是否报名: true-->已报名 ; false-->未报名")
    private boolean signedUp = false; //true-->已经报名  false-->未报名
}
